import regeneratorRuntime from '../../../resource/libs/runtime'
import { wxApiPromise } from '../../../common/utils'
import service from '../../../common/service'

Page({
  data: {
    list: []
  },

  async onLoad () {
    if (this.data.list.length === 0) {
      let res = await wxApiPromise(wx.showModal, {
        content: '无资金流水记录，快去下单吧！',
      })
      if (res.confirm) {
        console.log('返回首页')
      }
    }
  }
})